import java.util.Scanner;

public class test4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数字：");
        int start = sc.nextInt();
        System.out.println("请输入第二个数字：");
        int end = sc.nextInt();
        for (int i = start; i <= end; i++) {
            if (i % 3 == 0 && i % 5 == 0){
                System.out.println(i);
            }
        }
    }
}
